//
//  pingTaiViewController.m
//  OfferJob
//
//  Created by 河南动力无限科技有限公司 on 17/7/21.
//  Copyright © 2017年 郑州动力无限科技. All rights reserved.
//

#import "pingTaiViewController.h"

@interface pingTaiViewController ()
@property (nonatomic,strong)NSString* wedstr;
@end

@implementation pingTaiViewController

- (void)viewDidLoad {
    self.title=@"平台信息";
    [super viewDidLoad];
    // Do any additional setup after loading the view.
     [self getUserInfo];
}

// 获取
-(void)getUserInfo{
    FXTHttpRequestModel * requestModel = [[FXTHttpRequestModel alloc] init];
    requestModel.type = FXTHttpType_GET;
    requestModel.appendUrl = @"/Message/about_us";
    NSMutableDictionary * paramDic = [NSMutableDictionary dictionary];
    [paramDic setValue:@"1" forKey:@"type"];
    requestModel.paramDic = paramDic;
    requestModel.callback = ^(FXTHttpResponseModel * result, NSError *error){
        if (result.state ==FXTReponseCodeState_Success) {
            NSLog(@"请求的结果是%@",result.data);
            _wedstr=result.data;
            UIWebView * webView = [[UIWebView alloc] init];
            webView.frame = self.view.bounds;
            [self.view addSubview:webView];
            [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_wedstr]]];
            
        }else {
            [DisplayHelper displayWarningAlert:result.alertMsg];
        }
    };
    [[FXTHttpSessionManager sharedHttpSessionManager] sendHttpRequestParam:requestModel];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
